package com.athena.crm.service;

import com.athena.crm.domain.CrmCustomerHighSeas;
import com.athena.crm.domain.bo.CrmCustomerToHighSeasBo;
import com.athena.crm.domain.vo.CrmCustomerHighSeasVo;
import com.athena.crm.domain.bo.CrmCustomerHighSeasBo;
import com.athena.common.core.page.TableDataInfo;
import com.athena.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * CRM客户公海Service接口
 *
 * @author ruoyi
 * @date 2023-09-10
 */
public interface ICrmCustomerHighSeasService {

    /**
     * 查询CRM客户公海
     */
    CrmCustomerHighSeasVo queryById(Long id);

    /**
     * 查询CRM客户公海列表
     */
    TableDataInfo<CrmCustomerHighSeasVo> queryPageList(CrmCustomerHighSeasBo bo, PageQuery pageQuery);

    /**
     * 查询CRM客户公海列表
     */
    List<CrmCustomerHighSeasVo> queryList(CrmCustomerHighSeasBo bo);

    /**
     * 新增CRM客户公海
     */
    Boolean insertByBo(CrmCustomerHighSeasBo bo);

    /**
     * 修改CRM客户公海
     */
    Boolean updateByBo(CrmCustomerHighSeasBo bo);

    /**
     * 校验并批量删除CRM客户公海信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 客户转客户公海
     * @param bbo
     * @return
     */
    int customerToCustomerHighSeas(CrmCustomerToHighSeasBo bbo);

    /**
     * 客户公海转客户
     * @param bbo
     * @return
     */
    int customerSeasToCustomerHigh(CrmCustomerToHighSeasBo bbo);
}
